package com.cy.ppj.dao.mapper.mall;

import com.cy.ppj.model.domian.mall.Goods;
import com.cy.ppj.model.query.mall.GoodsAdminListQuery;
import com.cy.ppj.model.vo.mall.GoodsAdminListVO;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Description 商品 GoodsMapper
 * @Author tanyilin
 * @Date 2019/7/3 15:30
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 后台-商品列表
     * @param query
     * @return int
     */
    int selectGoodsAdminListCount(GoodsAdminListQuery query);

    List<GoodsAdminListVO> selectGoodsAdminList(GoodsAdminListQuery query);

    /**
     * 查询当前库里最大的排序值
     * @param
     * @return int
     */
    int selectMaxWeight();
}
